﻿@using Nop.Web.Models.Customer
@model RankingModel
@{
    Layout = "~/Views/Shared/_ColumnsTwo.cshtml";
}

<h2>@T("Ranking")</h2>
@if (Model.RakingDetails.Count > 0)
{
    <table class="data-table">
        <thead>
            <tr>
                <th class="a-center">
                    Hạng
                </th>
                <th class="a-center">
                    Họ tên
                </th>
                <th class="a-center">
                    Điểm thưởng
                </th>
                <th class="a-center">
                    Điểm giới thiệu
                </th>
                <th class="a-center">
                    Nhà phát hành
                </th>
            </tr>
        </thead>
        <tbody>
        @foreach (var rakingDetail in Model.RakingDetails)
        {
            <tr>
                <td class="a-right">
                    @rakingDetail.RankNo
                </td>
                <td class="a-left">
                    @rakingDetail.FullName
                </td>
                <td class="a-right">
                    @rakingDetail.RewartPoints
                </td>
                <td class="a-right">
                    @rakingDetail.ReferRewardPoints
                </td>
                <td class="a-left">
                    @rakingDetail.Publisher
                </td>
            </tr>
        }
        </tbody>
    </table>
}
else
{
    if (Model.Ranking != null)
    {
        <div>
            @Html.Raw(Model.Ranking.Body)
        </div>
    }
}